/*
 * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 */

package javax.security.sasl;

import javax.security.auth.callback.TextInputCallback;

/**
 * This callback is used by {@code SaslClient} and {@code SaslServer}
 * to retrieve realm information.
 *
 * @author Rosanna Lee
 * @author Rob Weltman
 * @since 1.5
 */
public class RealmCallback extends TextInputCallback {

  /**
   * Constructs a {@code RealmCallback} with a prompt.
   *
   * @param prompt The non-null prompt to use to request the realm information.
   * @throws IllegalArgumentException If {@code prompt} is null or the empty string.
   */
  public RealmCallback(String prompt) {
    super(prompt);
  }

  /**
   * Constructs a {@code RealmCallback} with a prompt and default
   * realm information.
   *
   * @param prompt The non-null prompt to use to request the realm information.
   * @param defaultRealmInfo The non-null default realm information to use.
   * @throws IllegalArgumentException If {@code prompt} is null or the empty string, or if {@code
   * defaultRealm} is empty or null.
   */
  public RealmCallback(String prompt, String defaultRealmInfo) {
    super(prompt, defaultRealmInfo);
  }

  private static final long serialVersionUID = -4342673378785456908L;
}
